import request from '@/utils/request';

// 门店获客-
export function staffList(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/staff-list',
        method: 'get',
        params: data
    });
}

// 批量开始、批量结束
export function changeStatus(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/change-status',
        method: 'post',
        data,
        noNeedLoading: true
    });
}

// 门店获客活动列表
export function storeList(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/list',
        method: 'post',
        data,
        noNeedLoading: true
    });
}

// 删除
export function storeDel(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/del',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
// 下载/批量下载
export function storeDownload(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/download',
        method: 'post',
        data
    });
}
// ----------------------------------------------------统计----------------------------------------------------
// 统计基础信息
export function statsBase(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/statsBase',
        method: 'post',
        data
    });
}

// 统计数据
export function storeStats(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/stats',
        method: 'post',
        data
    });
}

// 保存编辑活动
export function storeSave(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/save',
        method: 'post',
        data
    });
}
// 客户明细
export function getCustomerDetail(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/customer',
        method: 'post',
        data
    });
}
export function getCustomerExport(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/customer-export',
        method: 'post',
        data
    });
}
// ----------------------------------------------------活动详情----------------------------------------------------
// 新建
export function customerCreate(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/create',
        method: 'post',
        data
    });
}
// 编辑
export function customerEdit(data: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/edit',
        method: 'post',
        data
    });
}
// 查看
export function customerLook(params: any) {
    return request({
        url: '/scrm-api/console/market/store-customer/detail',
        method: 'get',
        params
    });
}
